package code.util;

import java.io.File;
import java.io.FileNotFoundException;

/**
 * 文件处理工具类
 * @author puxin.zhang
 *
 */
public class FileUtils {
	
	public static void mkDirs(String path) throws FileNotFoundException{
		File dir = new File(path);
		if(!dir.exists()){
			boolean isCreate = dir.mkdirs();
			if(!isCreate){
				throw new FileNotFoundException("the directory '" + path + "' was not created.");
			}
		}
	}

}
